package org.example.bulletin.service.Impl;

import org.example.bulletin.entity.vo.Bulletin_Content_vo;
import org.example.bulletin.repository.Bulletin_ContentRepository;
import org.example.bulletin.service.Bulletin_ContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Bulletin_ContentServiceImpl implements Bulletin_ContentService {
    private final Bulletin_ContentRepository bulletin_contentRepository;

    public Bulletin_ContentServiceImpl(Bulletin_ContentRepository bulletinContentRepository) {
        bulletin_contentRepository = bulletinContentRepository;
    }

    @Override
    public List<Bulletin_Content_vo> getContent(Integer id) {
        return bulletin_contentRepository.getContent(id);
    }
}
